if (the text of field "PromptMsg2" contains "password") or (the text of field "PromptMsg2" contains "Password") or (the text of field "PromptMsg2" contains "PASSWORD") then
if gHiddenPassword = EMPTY then
set the text of field "PromptFld2" to EMPTY
end if
case the keyCode of
49, 123, 124:
pass()
51:
delete char -30000 of gHiddenPassword
delete char -30000 of field "PromptFld2"
36:
closePromptAndReturnValues()
otherwise:
put the key after gHiddenPassword
put "•" after field "PromptFld2"
end case
else
case the keyCode of
36:
closePromptAndReturnValues()
otherwise:
pass()
end case
end if
end
on mouseDown
if (the text of field "PromptMsg2" contains "password") or (the text of field "PromptMsg2" contains "Password") then